package zxs.sino.elite.hub.enums.user;

import zxs.sino.elite.hub.enums.BaseEnum;

/**
 * 兴趣喜欢类型
 *
 * @author zhang
 */

public enum InterestLikeType implements BaseEnum<Integer> {

    DISLIKE(0, "不喜欢"),
    LIKE(1, "喜欢");

    private final int code;
    private final String value;

    InterestLikeType(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }

    public static boolean isDislike(Integer code) {
        return BaseEnum.isType(InterestLikeType.class, code, DISLIKE);
    }

    public static boolean isLike(Integer code) {
        return BaseEnum.isType(InterestLikeType.class, code, LIKE);
    }

}